package com.yfp.operation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.ComboDO;
import com.yfp.operation.domain.dto.ComboSaleDataDTO;
import com.yfp.operation.domain.vo.ComboSaleDataVO;
import com.yfp.operation.domain.vo.ComboSaleInfoVO;

import java.util.List;

/**
*
* @description 针对表【combo(套餐表)】的数据库操作Service
* @createDate 2024-04-24 14:17:39
*/
public interface ComboService extends IService<ComboDO> {

    /**
     * 根据套餐id查询套餐
     * @param comboIds
     * @return
     */
    List<ComboDO> queryByIds(List<String> comboIds);

    String getName(String key);

    List<ComboDO> findByComboIds(List<String> comboIds);

    /**
     * 套餐销售数据
     * @param comboSaleDataDTO
     * @return
     */
    List<ComboSaleDataVO> comboSaleData(ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 数据补全
     * @param list
     * @param comboSaleDataDTO
     * @return
     */
    List<ComboSaleDataVO> complementSaleData(List<ComboSaleDataVO> list, ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 套餐数据总览
     * @param comboSaleDataDTO
     * @return
     */
    ComboSaleDataVO comboDataTotal(ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 套餐销售详情
     * @param comboSaleDataDTO
     * @return
     */
    List<ComboSaleDataVO> comboSaleInfo(ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 套餐销售详情数据补全
     * @param list
     * @return
     */
    List<ComboSaleInfoVO> complementSaleInfo(List<ComboSaleDataVO> list, ComboSaleDataDTO comboSaleDataDTO);
}
